<? include('librerias.php');
$id = $_REQUEST['gal'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Autos Y Refacciones</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<?=fancybasic();?>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.2.73.js"></script>
<script type="text/javascript">
$(document).ready(function()
	{
    $('.slideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
});
</script>
<script type="text/javascript" src="js/jquery-1.6.1.min.js"></script>

  <script type="text/javascript" src="js/cufon-yui.js"></script>
  <script type="text/javascript" src="js/AlternateGothic2_BT_400.font.js"></script>
  <script type="text/javascript" src="js/cufon-replace.js"></script>

   <link rel="stylesheet" href="css/default/default.css" type="text/css" media="screen" />    
    <link rel="stylesheet" href="css/nivo-slider.css" type="text/css" media="screen" />
    <script type="text/javascript" src="js/jquery.nivo.slider.pack.js"></script>
    <script type="text/javascript">
    $(window).load(function() {
        $('#slider').nivoSlider({
			animSpeed:500,
			pauseTime:3000		
		});
    });
    </script>
</head>
<body>
<?=menu_general();?>
<table width="1000" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr><td>
  		<table width="880" border="0" cellspacing="0" cellpadding="0" align="center">
      		<tr><td width="13%" style="vertical-align:top"><a href="chicasayr.php">Imagen</a><br />
            	<a href="chicasgaleria.php" class="gray12"><strong>Portafolio</strong></a><br />
            	<a href="fondos.php">Descargas</a><br />
          		<a href="produccion.php">Producción</a></td>
        		<td width="87%"><div class="slider-wrapper theme-default">
            <div class="ribbon"></div>
            <div id="slider" class="nivoSlider">
     		<?=galeria($id,$count);?>
                           </div>
            
  </div></td></tr>
      		<tr><td>&nbsp;</td>
        		<td rowspan="2" align="center">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr><td>&nbsp;</td></tr>
					<tr><td><div align="center">&nbsp;</div></td></tr>
                </table></td></tr>
      		<tr><td>&nbsp;</td></tr>
		</table></td></tr>
</table>
<div class="alfinal" style="width:100%;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td class="gray12" height="30">&copy;&nbsp;autosyrefacciones.com 2011.</td>
    </tr>
</table>
</div>
</body>
</html>
<?
function galeria($id,$count)
	{
    require('abrirdb.php');
	$busca = mysql_query("select * from galeria_detalle where id_galeria = '$id'");
	while($array = mysql_fetch_array($busca))
		{$text .= '<img src="galeria/'.$array['imagen'].'" width="840" height="550" border="0" />';}
	return $text;
    }
?>